<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>待办事项管理</title>
    <link rel="stylesheet" href="style.css">
    <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
</head>
<body>
    <div class="container">
        <header class="header">
            <h1><i class="fas fa-tasks"></i> 我的待办事项</h1>
            <div class="stats">
                <span class="total">总计: <span id="totalCount">0</span></span>
                <span class="completed">已完成: <span id="completedCount">0</span></span>
            </div>
        </header>

        <div class="input-section">
            <div class="input-group">
                <input type="text" id="taskInput" placeholder="添加新的待办事项..." maxlength="100">
                <button id="addBtn" class="add-btn">
                    <i class="fas fa-plus"></i> 添加
                </button>
            </div>
        </div>

        <div class="filter-section">
            <button class="filter-btn active" data-filter="all">
                <i class="fas fa-list"></i> 全部
            </button>
            <button class="filter-btn" data-filter="active">
                <i class="fas fa-clock"></i> 待完成
            </button>
            <button class="filter-btn" data-filter="completed">
                <i class="fas fa-check-circle"></i> 已完成
            </button>
        </div>

        <div class="todo-list" id="todoList">
            <!-- 待办事项将在这里动态生成 -->
        </div>

        <div class="empty-state" id="emptyState">
            <i class="fas fa-clipboard-list"></i>
            <p>暂无待办事项</p>
            <small>添加你的第一个任务开始吧！</small>
        </div>
    </div>

    <script src="script.js"></script>
</body>
</html>
